//
//  EJCommentInputView.h
//  EJCommentKit_Example
//
//  Created by ejiang on 2021/11/29.
//  Copyright © 2021 15093319898@163.com. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "EJCommentBar.h"

NS_ASSUME_NONNULL_BEGIN

@protocol EJCommentInputViewDelegate <NSObject>

- (void)ej_commentInputViewDidClickSendWithContent:(NSString *)content;

@end

typedef enum : NSUInteger {
    EJ_Comment_WordLimitType_None,        //无限制
    EJ_Comment_WordLimitType_Alert,       //弹窗提醒
    EJ_Comment_WordLimitType_NotInput,    //无法输入
} EJ_Comment_WordLimitType;

@interface EJCommentInputView : UIView

@property (nonatomic, strong) EJCommentBar * commentBar;

@property (nonatomic, assign) NSInteger maxCount;//只在WordLimtType != WordLimtType_None时有效

- (instancetype)initWithWordLimitType:(EJ_Comment_WordLimitType)wordLimitType maxCount:(NSInteger)maxCount;

@property (nonatomic, weak) id <EJCommentInputViewDelegate> delegate;

@property (nonatomic, strong) UIColor * lineColor;
@property (nonatomic, strong) UIColor * textColor;
@property (nonatomic, strong) NSAttributedString * placeholder;
@property (nonatomic, strong) UIColor * tintColor;
@property (nonatomic, strong) UIColor * textBgColor;

@property (nonatomic, strong) UIFont * font;

- (void)beginOnceInput;

- (void)completeOnceInput;

@end

NS_ASSUME_NONNULL_END
